<template>
  <view id="app">
    <view v-for="item of movies" :key="item.id">
      {{item.title}}
      <image :src="item.pic"></image>
    </view>
  </view>
</template>

<script>
import './index.scss'
import Taro from '@tarojs/taro'
export default {
  data () {
    return {
      movies: []
    }
  },
  async mounted(){
    var res =await Taro.request({url:'http:///47.108.197.28:4000/api/movie/top250'})
    console.log(res.data.res)
    this.movies = res.data.res
  },
}
</script>
